package dao;

import java.sql.Connection;

public class DAOFactory {
	protected static Connection connection = null;
	
	public static DAO getServiceDAO(Connection connection){
		return new ServiceDAO(connection);
	}
	
	public static DAO getSubnetDAO(Connection connection){
		return new SubnetDAO(connection);
	}
	
	public static DAO getUserDAO(Connection connection){
		return new UserDAO(connection);
	}
	
	public static DAO getVMDAO(Connection connection){
		return new VMDAO(connection);
	}
	
	public static DAO getProviderDAO(Connection connection){
		return new ProviderDAO(connection);
	}

	public static DAO getEndpointDAO(Connection connection){
		return new EndpointDAO(connection);
	}

}
